import {request} from './request'
//登录接口 获取绑定手机号同一个
// const login = (data: object | any)=>request('/jazp-auth/oauth2/token', 'POST', data)
export const login = (data: object | any)=>request('/zgyp-auth/user/login', 'POST', data)
export const loginout = (data: object | any)=>request('/zgyp-ums/app-api/v1/members/removeInformation', 'DELETE', data)
// export const postLoginWxMinAPI = (data: object | any)=>request('/zgyp-auth/oauth2/token', 'POST', data)
 // 获取验证码
export const sendSMS = (data: object | any)=>request('/zgyp-open/sms-code/verify', 'POST', data)
  // 首页获取商品列表
export const getList =(data: object | any)=>request('/zgyp-recycle/api/v1/recycleCustomer/page', 'POST', data)
export const getExhibitionList =(data: object | any)=>request('/zgyp-recycle/api/v1/recycleClue/page', 'POST', data)
export const fetchFieldCfgList =(data: object | any)=>request('/zgyp-system/api/v1/field/list', 'POST', data)
 // 实名认证
export const certificate =(data: object | any)=>request('/zgyp-ums/app-api/v1/members/certificate', 'POST', data)
 // 会员信息
export const membersinfo =(data: object | any)=>request('/zgyp-ums/app-api/v1/members/me', 'GET', data)
 // 会员信息
export const membersDetail =(data: object | any)=>request('/zgyp-ums/app-api/v1/members/detail', 'GET', data)
//  // 绑定银行卡账号
// export const modifyBankAccount =(data: object | any)=>request('/zgyp-ums/app-api/v1/members/modifyBankAccount', 'POST', data)
 // 绑定账号
export const memberPayAccountList =(data: object | any)=>request('/zgyp-ums/app-api/v1/memberPayAccount', 'GET', data)
 // 绑定账号
export const memberPayAccountAdd =(data: object | any)=>request('/zgyp-ums/app-api/v1/memberPayAccount/add', 'POST', data)
 // 解绑账号
export const memberPayAccountDelete =(data: object | any)=>request('/zgyp-ums/app-api/v1/memberPayAccount/delete', 'DELETE', data)
 // 修改个人信息
export const membersmodify =(data: object | any)=>request('/zgyp-ums/app-api/v1/members/modify', 'POST', data)
 // 新增地址
export const memberAddressesAdd =(data: object | any)=>request('/zgyp-ums/app-api/v1/memberAddresses/add', 'POST', data)
 // 新增地址
export const memberAddressesModify =(data: object | any)=>request('/zgyp-ums/app-api/v1/memberAddresses/modify', 'PUT', data)
 // 详情地址
export const memberAddressesDetail =(data: object | any)=>request('/zgyp-ums/app-api/v1/memberAddresses/detail', 'GET', data)
 // 删除地址
export const memberAddressesDelete=(data: object | any)=>request('/zgyp-ums/app-api/v1/memberAddresses/delete', 'DELETE', data)
 // 地址列表
export const memberAddressesList =(data: object | any)=>request('/zgyp-ums/app-api/v1/memberAddresses', 'GET', data)
 // 获取订单数量和金额
export const getRecycleOrderNum =(data: object | any)=>request('/zgyp-recycle/api/v1/RecycleOrder/page', 'POST', data)
 // 获取首页今日订单
export const getRecycleOrderopenNum =(data: object | any)=>request('/zgyp-recycle/api/v1/RecycleOrder/getNum', 'POST', data)

 // ocr识别身份证
export const recognizeIdCard =(data: object | any)=>request('/zgyp-system/api/v1/files/recognizeIdCard', 'POST', data)

